/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.eng.scc.core.data;

/**
 *
 * @author Rafael
 */
public class Company extends Skeleton
{
    public static final short ACTIVE = 0;
    public static final short INACTIVE = 1;
    
    private int addressId;
    private String realName = "";
    private String fantasyName = "";
    private String cnpj = "";
    private String email = "";
    private String phone1 = "";
    private String phone2 = "";
    private short state;

    public int getAddressId()
    {
        return addressId;
    }

    public void setAddressId( int addressId )
    {
        this.addressId = addressId;
    }

    public String getRealName()
    {
        return realName;
    }

    public void setRealName( String realName )
    {
        this.realName = realName;
    }

    public String getFantasyName()
    {
        return fantasyName;
    }

    public void setFantasyName( String fantasyName )
    {
        this.fantasyName = fantasyName;
    }

    public String getCnpj()
    {
        return cnpj;
    }

    public void setCnpj( String cnpj )
    {
        this.cnpj = cnpj;
    }

    public String getEmail()
    {
        return email;
    }

    public void setEmail( String email )
    {
        this.email = email;
    }

    public String getPhone1()
    {
        return phone1;
    }

    public void setPhone1( String phone1 )
    {
        this.phone1 = phone1;
    }

    public String getPhone2()
    {
        return phone2;
    }

    public void setPhone2( String phone2 )
    {
        this.phone2 = phone2;
    }

    public short getState()
    {
        return state;
    }

    public void setState( short state )
    {
        this.state = state;
    }

    @Override
    public String toString()
    {
        return realName + " - " + fantasyName;
    }

    @Override
    public boolean equals( Object obj )
    {
        if ( obj == null )
        {
            return false;
        }
        if ( getClass() != obj.getClass() )
        {
            return false;
        }
        final Company other = ( Company ) obj;
        if ( this.getId() != other.getId() )
        {
            return false;
        }
        return true;
    }
}
